home *** CD-ROM | disk | FTP | other *** search
- unit Aboutbox;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs;
-
- type
- TForm1 = class(TForm)
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- {*Add this line of code}
- procedure LoadOurAboutbox(Handle: THandle); export; {*We created this-
- procedure and gave it the export directive}
-
- implementation
-
- {$R *.DFM}
-
- {*Add the following lines of code}
- procedure LoadOurAboutbox(Handle: THandle); {*Our procedure}
- begin
- Application.Handle := Handle; {*Delphi default application calling}
- Form1:= TForm1.Create(Application); {*Create the Aboutbox}
- try {*Delphi reserved word}
- Form1.ShowModal; {*Try and make the Aboutbox modal}
- finally {*Finally, or "make sure"}
- Form1.Free; {*Unload the instance of our Aboutbox}
- end;
- end;
-
- end.
-
-